import {createStore} from 'vuex'
import persistedState from 'vuex-persistedstate'
const store = createStore({
    state: {
        userInfor:{
            
        }
    },
    mutations:{
        // 获取用户信息
        getUserInfor(state:any,payload:any):void{
            console.log(payload)
            state.userInfor=payload;
        }
    },
    plugins: [
        persistedState()
    ],
})

export default store